package com.zking.ssm.He.service.impl;

import com.zking.ssm.He.mapper.OrderGoodsMapper;
import com.zking.ssm.He.model.OrderGoods;
import com.zking.ssm.He.service.IOrderGoodsService;
import com.zking.ssm.util.PageBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IOrderGoodsServiceImpl implements IOrderGoodsService {
    @Autowired
    private OrderGoodsMapper orderGoodsMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {

        return orderGoodsMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insertSelective(OrderGoods record)
    {
        return orderGoodsMapper.insertSelective(record);
    }

    @Override
    public int updateByPrimaryKeySelective(OrderGoods record) {
        return orderGoodsMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public List<OrderGoods> list(OrderGoods record, PageBean pageBean) {

        return orderGoodsMapper.list(record);
    }
}
